<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Imprimir Lista #{ListaController.listaAux.titulo}</h3>

                <p>Edite o cabeçalho e depois clique em Imprimir</p>

                <div id="stylized" class="myform">

                    <script type="text/javascript" src="resources/js/nicEdit.js"></script>
                    <script type="text/javascript">
                        bkLib.onDomLoaded(function() {
                            new nicEditor({iconsPath : 'resources/js/nicEditorIcons.gif'}).panelInstance('cabecalho');
                    
                        });
                    </script>


                    <!--                    
                                        
                                        <script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
                            //<![CDATA[
                                 bkLib.onDomLoaded(function() {
                                      var myNicEditor = new nicEditor();
                                      myNicEditor.setPanel('myNicPanel');
                                      myNicEditor.addInstance('cabecalho');
                                      myNicEditor.addInstance('aeaoofnhgocdbnbeljkmbjdmhbcokfdb-mousedown');
                                 });
                              //]]>
                                        </script>-->

                    <div id="myNicPanel" style="width: 525px;" title="editar cabeçalho" />

                    <br />



                    <h:panelGrid id="listaPrint">


                        <span id="cabecalho" style="display: block;">
                            <b>Universidade Tecnológica Federal do Paraná</b><div style="text-align: center;">Atividade Avaliativa</div> 

                        </span><br />


                        <c:forEach var="questaoTemp" items="#{ListaController.questaos}" varStatus="vStatus" id="quest">

                            <div style="margin-top: 20px">
                                <ui:include src="../questao/questaoView2.xhtml"  />
                            </div>
                        </c:forEach>


                    </h:panelGrid>

                    <h:commandButton styleClass="button" value="Imprimir" id="print" >
                        <p:printer target="listaPrint" />

                    </h:commandButton>





                </div>
            </div>
        </ui:composition>

    </body>
</html>




